Make a div horizontally scrollable using CSS
In this article, we will learn how to design a horizontally scrollable div using CSS, & will see its implementation through the example. We can make a div horizontally scrollable by using the CSS overflow property. There are different values in the overflow property....
read more
fetch API in JavaScript with Examples
The JavaScript fetch() method used for retrieving resources from a server. It returns a Promise, resolving to the Response object, which encapsulates the server’s response to the request. fetch() facilitates making both GET requests, typically employed for fetching data, and POST requests, utilized for posting data to servers....
read more
How to fix the height of rows in the table?
Fixing the height of rows in a table ensures uniformity and prevents dynamic resizing based on content. It’s achieved by setting a specific height for the `<tr>` elements using CSS, ensuring consistent presentation....
read more
Lodash _.cloneDeep() Method
The Lodash _.cloneDeep() method is handy for making a complete copy of a value. It goes deep into the value, copying everything inside it too. So, the new object you get has the exact same data as the original, but they’re not linked in memory....
read more
Difference Between CSS and SCSS
CSS is a stylesheet language whereas SCSS is a preprocessor scripting language that is a superset of CSS. This article will cover the detailed differences between CSS and SCSS....
read more
HTML Clearing the input field
Clearing the input field in HTML involves removing any existing text or data entered by the user within a form field. This action can be achieved programmatically through JavaScript by setting the field’s value property to an empty string, effectively erasing its contents....
read more
How to detect browser or tab closing in JavaScript ?
A tab or window closing in a browser can be detected by using the beforeunload event. This can be used to alert the user in case some data is unsaved on the page, or the user has mistakenly navigated away from the current page by closing the tab or the browser....
read more
Download file from URL using PHP
In this article, we will see how to download & save the file from the URL in PHP, & will also understand the different ways to implement it through the examples. There are many approaches to download a file from a URL, some of them are discussed below:...
read more
Installation of Node JS on Windows
Node.js can be installed in multiple ways on a computer. The approach used by you depends on the existing Node.js development environment in the system. There are different package installers for different environments. You can install Node.js by grabbing a copy of the source code and compiling the application. Another way of installing Node.js is by cloning the Node.js GIT repository in all three environments and then installing it on the system....
read more
How to make elements float to center?
The CSS float property is used to set or return the horizontal alignment of elements. But this property allows an element to float only right or left side of the parent body with the rest of the elements wrapped around it. There is no way to float the center in the CSS layout. So, we can center the elements by using position property....
read more
How to style a checkbox using CSS ?
Styling a checkbox using CSS involves modifying its appearance, such as changing its size, color, and shape. This can be achieved by targeting the checkbox element and applying CSS properties like background-color, border, and size adjustments....
read more
HTML <hr> Tag
The <hr> tag in HTML represents a thematic break, typically displayed as a horizontal rule. The primary purpose of the <hr> tag is to create a visual separation between content sections within an HTML page....
read more